﻿#region

using MessageTypeDescriber.Xml;
using NUnit.Framework;

#endregion

namespace MessageTypeDescriber.Tests.TypeFullDescriptionTests
{
    [TestFixture]
    public class when_creating_type_full_description
    {
        private TypeFullDescription _sut;

        [SetUp]
        public void because()
        {
            _sut = new TypeFullDescription(typeof (FakeTypeWithDescription));
        }

        [Test]
        public void should_read_description_attribute()
        {
            Assert.AreEqual("fakeDescription", _sut.Description, "description not read correctly");
        }
    }

    [EsbMonitorMessages.ServiceDescription.Description("fakeDescription")]
    public class FakeTypeWithDescription
    {
    }
}